<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>  
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>      
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>      
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>      

<!DOCTYPE>
<html>
<head>
<meta charset="UTF-8">
<base href="${pageContext.request.contextPath}/">
<title>xxxx</title>

<link rel="stylesheet" href="style/subcategory1.css" type="text/css">

<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet"
	href="bootstrap/css/bootstrap.min.css">

<!-- 可选的Bootstrap主题文件（一般不用引入） -->
<link rel="stylesheet"
	href="bootstrap/css/bootstrap-theme.min.css">
	
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="jquery/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="bootstrap/js/bootstrap.min.js"></script>

<!-- 引用jQuery Easyui 文件 -->
<link rel="stylesheet" type="text/css" href="easyui/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="easyui/locale/easyui-lang-zh_CN.js"></script>

  
</head>

<body bgcolor="#FFFFFF" text="#000000" topmargin="2">
	<table width="760" border="0" cellspacing="0" cellpadding="0"
		align="center">
		<tr>
			<td background="images/topback.gif" width="130"><img
				src="images/sitelogo.gif" height="88"></td>
			<td background="images/topback.gif" width="500" align="center"
				valign="middle"><a href="http://www.fans8.com" target="_blank"><img
					src="images/fans8.gif" width="468" height="60" border="0"></a></td>
			<td background="images/topback.gif" width="130">
				<!-- #BeginLibraryItem "/Library/custm.lbi" -->
				<table width="100%" border="0" cellspacing="2" cellpadding="2">
					<tr>
						<td valign="middle" align="center"><a href="cart.jsp"> <img
								src="images/button_cart.gif" width="87" height="18" border="0">
						</a></td>
					</tr>
					<tr>
						<td valign="middle" align="center"><a
							href="checkorder_login.jsp"><img src="images/button_ddcx.gif"
								width="87" height="18" border="0"></a></td>
					</tr>
					<tr>

						<td valign="middle" align="center"><a
							href="customer_register.jsp"><img
								src="images/button_regist.gif" width="87" height="18" border="0"></a></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<form name="form2" method="post" action="">
		<table width="760" border="0" cellspacing="1" cellpadding="0"
			align="center" bgcolor="#000000">
			<tr>
				<td bgcolor="#FF9900" height="22" valign="middle" align="center">
					<!-- #BeginLibraryItem "/Library/nav.lbi" -->
					<table width="80%" border="0" cellspacing="2" cellpadding="2">
						<tr align="center" valign="middle">
							<td><a href="newproduct.asp" class="white">新品快递</a></td>

							<td><a href="commend.asp" class="white">重点推荐</a></td>

							<td><a href="bestsell.asp" class="white">销售排行</a></td>

							<td><a href="bestprice.asp" class="white">特价商品</a></td>
						</tr>
					</table>
					<!-- #EndLibraryItem -->
				</td>
			</tr>
			<tr>
				<td bgcolor="#FFCC66" height="22">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="50%"><a href="index.jsp" class="red">首页</a> &gt;
								<a href="category.jsp?id=${id}" class="red">${category.name}</a>
								&gt; <a href="subcategory.jsp?id=${sub.id}>" class="red">${sub.name}</a></td>
							<td width="50%" valign="middle" align="center"><select
								name="mnuCategory">
									<option value="${category.id}" selected>在本类商城中</option>
									<option value="${category.id}">在${category.name}中</option>
							</select> <input type="text" name="textPname" size="20" maxlength="50">
								<input type="submit" name="Submit2" value="搜索"></td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</form>
	<table width="760" border="0" cellspacing="0" cellpadding="0"
		align="center">
		<tr>
			<td width="75%" valign="top" align="left">
				<table width="98%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td rowspan="4" align="left" valign="top" width="18%"><img
							src="images/product/${product.bigImg}"></td>
						<td width="82%" class="productName">
							<form name="cartform" method="post" action="cart/add.action">
								
								${proudct.name} 
								<c:if test="${product.hotDeal==1}">								
								    <img src="images/hotprice.gif" width="24" height="24"> 
								</c:if>
								
								<input type="image" border="0" name="imageField" src="images/addtocart.gif" width="30"
									height="18" alt="加入购物车"> 
								<input type="hidden" name="productId" value="${product.id}">
							</form>
						</td>
					</tr>
					<tr>
						<td width="82%">${product.supplier} ${product.author}</td>
					</tr>
					<tr>
						<td width="82%">出版日期： <fmt:formatDate value="${product.pubDate}" pattern="yyyy年MM月dd日" />&nbsp;&nbsp;&nbsp;产品编号：${product.isbn}</td>
					</tr>
					<tr>
						<td width="82%">
						 <c:if test="${product.hotDeal==1}">							 
						        原价：<span class="hotPrice">${product.price}</span>元 现价：${product.listPrice}元
						 </c:if>
                         <c:if test="${product.hotDeal==0}">                         
							价格： ${product.price}元
                         </c:if>
						</td>
					</tr>
					<tr>
						<td colspan="2">
						
						${product.description}
						
						</td>
					</tr>
				</table>
				<table width="98%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="31%" valign="middle" align="center" height="22"
							class="bestselltitle">读者评论</td>
						<td width="69%">&nbsp;</td>
					</tr>
					<tr align="center" valign="top">
						<td colspan="2" class="bestsellbox">
							<table width="98%" border="0" cellspacing="2" cellpadding="2">
								<tr>
									<td width="34%">&nbsp;</td>
									<td width="40%">&nbsp;</td>
									<td width="26%">&gt;&gt; <a href="#"
										onClick="window.open('review.jsp','','scrollbars=yes,width=500,height=300')">我要评论</a>
										&lt;&lt;
									</td>
								</tr>
								<!-- 评价列表开始 -->
								<tr>
									<td bgcolor="#E4E4E4"><a href="mailto:${reviewEmail}">${reviewName}</a></td>
									<td colspan="2" align="center" bgcolor="#E4E4E4">${reviewTime}</td>
								</tr>
								<tr>
									<td colspan="3">${reviewContent}</td>
								</tr>
								<tr>
									<td colspan="3" height="1" bgcolor="#E1E1E1"></td>
								</tr>
								<!-- 评价列表结束 -->
								<tr align="center">
									<td colspan="3">
										<!-- 分页导航开始 -->
										<table border="0" width="50%">
											<tr>
												<td width="23%" align="center"><a
													href="" class="navi">第一页</a></td>
												<td width="31%" align="center"><a
													href="" class="navi">前一页</a></td>
												<td width="23%" align="center"><a
													href="" class="navi">下一页</a></td>
												<td width="23%" align="center"><a
													href="" class="navi">最末页</a></td>
											</tr>
										</table> 
										
										 第${review_first} 到${review_last}条评论，共${review_total}条
										该商品目前没有任何评论。
										
										<!-- 分页导航结束 -->
									</td>
								</tr>
								<tr>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
									<td>&gt;&gt; <a href="#"
										onClick="window.open('review.jsp','','scrollbars=yes,width=500,height=300')">我要评论</a>
										&lt;&lt;
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
			<td width="25%" align="right" valign="top">
				<table width="100%" border="0" cellspacing="0" cellpadding="4"
					class="commendbox">
					<tr>
						<td height="22" align="center" class="commendtitle" colspan="2">商品评分</td>
					</tr>
					<!-- if ${NUM_RATES}  -->

					<tr>
						<td colspan="2">以下是本商品得分情况：</td>
					</tr>
					<tr>
						<td width="65%">
							<table width="70" border="0" cellspacing="0" cellpadding="0"
								background="images/rating/rate_back.gif" height="15">
								<tr>
									<td>
										<table width="${GRAGHWIDTH}" border="0" cellspacing="0"
											cellpadding="0" height="15" background="images/rating/5.gif">
											<tr>
												<td>&nbsp;</td>
											</tr>
										</table>
								     </td>
								</tr>
							</table>
						</td>
						<td width="35%">${AVERAGE_RATES} 分</td>
					</tr>
					<tr>
						<td colspan="2">共有${NUM_RATES}位顾客为本商品评分</td>
					</tr>
					<tr>
						<td colspan="2">最高分：${HIGH_RATE}分</td>
					</tr>
					<tr>
						<td colspan="2">最低分：${LOW_RATE}分</td>
					</tr>

					<!-- end if ${NUM_RATES}  -->

					<tr>
						<!-- if ${NUM_RATES} -->
						<td colspan="2">目前还没有顾客对此商品评分</td>
						<!-- end if ${NUM_RATES} -->
					</tr>
					<tr align="center" bgcolor="#CCCCFF">
						<td colspan="2">&gt;&gt;&gt; 请您评分 &lt;&lt;&lt;</td>
					</tr>
					<tr align="center">
						<td colspan="2">
							<form name="rating_form" method="POST"
								action="">
								<table width="90%" border="0" cellspacing="2" cellpadding="2">
									<tr>
										<td width="24%"><input type="radio" name="radiobutton"
											value="5" checked></td>
										<td width="76%"><img src="images/rating/5.gif" width="70"
											height="15"></td>
									</tr>
									<tr>
										<td width="24%"><input type="radio" name="radiobutton"
											value="4"></td>
										<td width="76%"><img src="images/rating/4.gif" width="70"
											height="15"></td>
									</tr>
									<tr>
										<td width="24%"><input type="radio" name="radiobutton"
											value="3"></td>
										<td width="76%"><img src="images/rating/3.gif" width="70"
											height="15"></td>
									</tr>
									<tr>
										<td width="24%"><input type="radio" name="radiobutton"
											value="2"></td>
										<td width="76%"><img src="images/rating/2.gif" width="70"
											height="15"></td>
									</tr>
									<tr>
										<td width="24%"><input type="radio" name="radiobutton"
											value="1"></td>
										<td width="76%"><img src="images/rating/1.gif" width="70"
											height="15"></td>
									</tr>
									<tr align="center">
										<td colspan="2"><input type="submit" name="Submit"
											value="评 分"> <input type="hidden" name="hiddenField"
											value="${product.id}"></td>
									</tr>
								</table>
								<input type="hidden" name="MM_insert" value="true">
							</form>
						</td>
					</tr>
				</table>
			</td>

		</tr>
	</table>
	<br>
	<table width="760" border="0" cellspacing="0" cellpadding="0"
		align="center">
		<tr>
			<td background="images/topback.gif" align="center" height="16"><font
				color="#FFFFFF">copyright 2001 Powered by Peter.HJ</font></td>
		</tr>
	</table>
</body>

</html>